/**
 * Company
 * Copyright (C) 2004-2018 All Rights Reserved.
 */
package com.idefav.springdemo2.aop;

import com.idefav.springdemo2.aop.annonations.interceptors.MyInterceptor;
import com.idefav.springdemo2.aop.annonations.services.PersonService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.*;

/**
 * @author wuzishu
 * @version $Id Application.java, v 0.1 2018-07-22 下午4:32 wuzishu Exp $$
 */
@Configuration
@EnableAspectJAutoProxy
@ComponentScan
public class Application {


    public static void main(String[] args) {
        ApplicationContext applicationContext=new AnnotationConfigApplicationContext(Application.class);

        PersonService personService = (PersonService) applicationContext.getBean("personService");
        personService.getPerson();
    }
}
